<?php

class Basic_category_to {

	private $number;
	private $title;
	
	public function __construct($number, $title) {
		$this->number = $number;
		$this->title = $title;
	}
	
	public function get_number() {
		return $this->number;
	}
	
	public function get_title() {
		return $this->title;
	}

	public function equals($object) {
		if ((get_class($this) != get_class($object)) ||
				($object == null))				
			 return false;
		else {
			if (($this->number == $object->get_number()) &&
				($this->title == $object->get_title()))
				return true;
			return false;
		}
	}
	
	public function to_string() {
		return 'number: ' . $this->number . ' | ' .
				'title: ' . $this->title;
	}
}
?>